package pattern6.resume;

/**
 * @author wdl
 */
public class ResumePrototype {
    public static void main(String[] args) {
        Resume resume=new Resume("小菜");
        resume.setCompany("今日头条");

        Resume resume1= (Resume) resume.clone();
        resume1.setCompany("google");

        Resume resume2= (Resume) resume.clone();
        resume2.setCompany("BaiDu");

        resume.displayCompany();
        resume1.displayCompany();
        resume2.displayCompany();
    }
}
